package com.jtjrenren.android.taxi.driver.bean;

import com.library.utils.StringUtils;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/3/5.
 * 临时订单表 用于记录订单
 */
public class Order implements Serializable {
    private String orderID;
    private int orderType; //及时订单、预约订单
    private String useDate; //160524150038
    private String passgerLat, passgerLng;
    private String endLat, endLng;
    private String startAddr, endAddr;
    private String tip;
    private String passgerPhone;
    private int orderStatus; //订单状态
    private int payStatus; //支付状态
    private String createDate;

    //其他
    private double total;  //费用总额

    private String localStatus;


    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public int getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(int payStatus) {
        this.payStatus = payStatus;
    }

    public String getStartAddr() {
        return startAddr;
    }

    public void setStartAddr(String startAddr) {
        this.startAddr = startAddr;
    }

    public String getEndAddr() {
        return endAddr;
    }

    public void setEndAddr(String endAddr) {
        this.endAddr = endAddr;
    }

    public double getTotal() {
        return total;
    }

    public void setTotal(double total) {
        this.total = total;
    }


    public int getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(int orderStatus) {
        this.orderStatus = orderStatus;
    }


    public String getOrderID() {
        return orderID;
    }

    public void setOrderID(String orderID) {
        this.orderID = orderID;
    }

    public int getOrderType() {
        return orderType;
    }

    public void setOrderType(int orderType) {
        this.orderType = orderType;
    }

    public String getUseDate() {
        return useDate;
    }

    public void setUseDate(String useDate) {
        this.useDate = useDate;
    }

    public String getPassgerLat() {
        return passgerLat;
    }

    public void setPassgerLat(String passgerLat) {
        this.passgerLat = passgerLat;
    }

    public String getPassgerLng() {
        return passgerLng;
    }

    public void setPassgerLng(String passgerLng) {
        this.passgerLng = passgerLng;
    }

    public String getEndLat() {
        return endLat;
    }

    public void setEndLat(String endLat) {
        this.endLat = endLat;
    }

    public String getEndLng() {
        return endLng;
    }

    public void setEndLng(String endLng) {
        this.endLng = endLng;
    }

    public String getTip() {
        if (StringUtils.isEmpty(tip))
            tip = "0";
        return tip;
    }

    public void setTip(String tip) {
        this.tip = tip;
    }

    public String getPassgerPhone() {
        return passgerPhone;
    }

    public void setPassgerPhone(String passgerPhone) {
        this.passgerPhone = passgerPhone;
    }

    public String getLocalStatus() {
        return localStatus;
    }

    public void setLocalStatus(String localStatus) {
        this.localStatus = localStatus;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderID='" + orderID + '\'' +
                ", orderType=" + orderType +
                ", useDate='" + useDate + '\'' +
                ", passgerLat='" + passgerLat + '\'' +
                ", passgerLng='" + passgerLng + '\'' +
                ", endLat='" + endLat + '\'' +
                ", endLng='" + endLng + '\'' +
                ", startAddr='" + startAddr + '\'' +
                ", endAddr='" + endAddr + '\'' +
                ", tip='" + tip + '\'' +
                ", passgerPhone='" + passgerPhone + '\'' +
                ", orderStatus=" + orderStatus +
                ", payStatus=" + payStatus +
                ", createDate='" + createDate + '\'' +
                ", total=" + total +
                ", localStatus='" + localStatus + '\'' +
                '}';
    }
}
